package com.indexingsystem.boss.admin.mapper;

import java.util.List;

import com.indexingsystem.boss.Vo.*;
import com.indexingsystem.boss.entity.IdxProducts;
import org.apache.ibatis.annotations.Param;

public interface IdxProductsMapper {
    int deleteByPrimaryKey(String productId);

    int insert(IdxProducts record);

    int insertSelective(IdxProducts record);

    IdxProducts selectByPrimaryKey(String productId);

    int updateByPrimaryKeySelective(IdxProducts record);

    int updateByPrimaryKeyWithBLOBs(IdxProducts record);

    int updateByPrimaryKey(IdxProducts record);
    
    
    /**
     * 批量删除产品标引列表
     * @param list
     * @return
     */
    Integer deleteByIdBatch(List<String> list);
    
    
    /**
     * 页多条件查询产品标引列表
     * @param idxProductSelectReqVo
     * @return
     */
    List<IdxProductsQueryVo> getProductList(IdxProductSelectReqVo idxProductSelectReqVo);
    
    /**
     * 分页多条件查询产品标引列表数量
     * @param idxProductSelectReqVo
     * @return
     */
    Integer getProductListCount(IdxProductSelectReqVo idxProductSelectReqVo);
    /**
     * 查询产品内文详情
     * @param idxProductInnerTextSelectDetailReqVo
     * @return
     */
    IdxProductInnerTextDetailListVo selectIdxProduct(
			String productId);
	 /**
     * 查询产品内文详情总数
     * @param idxProductInnerTextSelectDetailReqVo
     * @return
     */
	Integer selectIdxProductCount(String productId);

    List<IdxProductsResVo> getProductListByIds(List<String> ids);

    List<IdxProducts> getUnAssignProductList(@Param("ids") List<String> ids, @Param("reqVo") TaskProductAddReqVo reqVo);

}